import { createRouter, createWebHistory } from 'vue-router'

const routes = [
      {
    path: '/pendant',
    name: 'pendant',
    component: () => import('../views/pendant/index.vue'),
    meta: {
      title: '登录'
    }
  },
    {
    path: '/login',
    name: 'login',
    component: () => import('../views/login.vue'),
    meta: {
      title: '登录'
    }
  },
  {
    path: '/',
    component: () => import('@/views/HomePage.vue')
  },
  {
    path: '/about',
    component: () => import('@/views/AboutPage.vue')
  },
  {
    path: '/webgis',
    component: () => import('@/views/webgis/index.vue')
  }
]

export default createRouter({
  history: createWebHistory(),
  routes
})